Selenite Towers Move Faster Than Hanoï Towers, But Still Require Exponential Time

نویسنده

  • Jérémy Barbay
چکیده

The Hanoï Tower problem is a classic exercise in recursive programming: the solution has a simple recursive definition, and its complexity and the matching lower bound correspond to the solution of a simple recursive function (the solution is so simple that most students memorize it and regurgitate it at exams without truly understanding it). We describe how some minor change in the rules of the Hanoï Tower yields various increases of difficulty in the solution, so that to require a deeper mastery of recursion than the classical Hanoï Tower problem. In particular, we analyze the Selenite Tower problem, where just changing the insertion and extraction positions from the top to the middle of the tower results in a surprising increase in the intricacy of the solution: such a tower of n disks can be optimally moved in a √ 3 moves for n even (i.e. less than a Hanoï Tower of same height), via five recursive functions following three distinct patterns. 1998 ACM Subject Classification F.2.2 [Analysis of Algorithms and Problem Complexity] Nonnumerical Algorithms and Problems, F.2.m [Analysis of Algorithms and Problem Complexity] Miscellaneous

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Bouncing Towers move faster than Hanoi Towers, but still require exponential time

The problem of the Hanoï Tower is a classic exercise in recursive programming: the solution has a simple recursive definition, and its complexity and the matching lower bound are the solution of a simple recursive function (the solution is so easy that most students memorize it and regurgitate it at exams without truly understanding it). We describe how some very minor changes in the rules of t...

متن کامل

On the Height of Towers of Subsequences and Prefixes

A tower is a sequence of words alternating between two languages in such a way that every word is a subsequence of the following word. The height of the tower is the number of words in the sequence. If there is no infinite tower (a tower of infinite height), then the height of all towers between the languages is bounded. We study upper and lower bounds on the height of maximal finite towers wit...

متن کامل

Whitney Towers and Gropes in 4–manifolds

Many open problems and important theorems in low-dimensional topology have been formulated as statements about certain 2–complexes called gropes. This paper describes a precise correspondence between embedded gropes in 4–manifolds and the failure of the Whitney move in terms of iterated ‘towers’ of Whitney disks. The ‘flexibility’ of these Whitney towers is used to demonstrate some geometric co...

متن کامل

Alternating Towers and Piecewise Testable Separators

Two languages are separable by a piecewise testable language if and only if there exists no infinite tower between them. An infinite tower is an infinite sequence of strings alternating between the two languages such that every string is a subsequence (scattered substring) of all the strings that follow. For regular languages represented by nondeterministic finite automata, the existence of an ...

متن کامل

STRUCTURAL ANALYSIS AND STRUCTURAL OPTIMIZATION OF SELF-SUPPORTING TRUSS TOWERS TO SUPPORT A LARGE WIND TURBINE

This article aims to study the self-supporting truss towers used to support large wind turbines. The goal is to evaluate and validate numerically by finite element method the structural analysis when the lattice structures of the towers of wind turbines are subjected to static loads and these from common usage. With this, it is expected to minimize the cost of transportation and installation of...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016